package com.kaishengit.service;

import java.util.List;

import com.kaishengit.dao.UserDao;
import com.kaishengit.entity.User;

public class UserService {
	private UserDao userDao=new UserDao();
	
	public User login(User user){
		return userDao.findByUserNameAndPassword(user);
	}
	public List<User> findAll(){
		return userDao.findAll();
	}
}
